package org.bulu.project.service.video.service;

import com.github.pagehelper.PageInfo;
import org.bulu.project.common.result.Result;
import org.bulu.project.system.model.dto.CommentDTO;
import org.bulu.project.system.model.dto.CommentContentDTO;

import java.util.List;

public interface CommentService {
    Result addComment(CommentDTO commentDTO);
    Result deleteComment(Integer id, Integer uid, boolean isAdmin);
    List<CommentContentDTO> getAllComments(Integer vid, Integer sortChoose);
    PageInfo findParent(List<CommentContentDTO> comments,Integer sortChoose, Integer currentCommentPage);
    Result likeOrDislikeComment(Integer id, Integer userId, boolean isLike);
}
